package com.example.library.mapper;

import com.example.library.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CategoryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer id);
    List<Category> select();

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);
}